package com.lanou.hotel.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lanou.hotel.entity.Home;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lanou.hotel.entity.Type;
import com.lanou.hotel.entity.response.HomeItem;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author msy
 * @since 2023-10-28
 */
public interface HomeMapper extends BaseMapper<Home> {
    List<HomeItem> getHomes(Page<HomeItem> page, String typeName);

    int saveHome(Home home);

    int deleteByTypeIds(List<Type> typeList);

    Home selectOneByNum(Integer num);
}
